package com.ruoyi.boss.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 三级联动区域辅助（省份→城市→区县）对象 region_cascader
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class RegionCascader extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域ID（自增主键） */
    private Long id;

    /** 省份（如：山东省） */
    @Excel(name = "省份", readConverterExp = "如=：山东省")
    private String province;

    /** 城市（如：威海市，可为空表示省级） */
    @Excel(name = "城市", readConverterExp = "如=：威海市，可为空表示省级")
    private String city;

    /** 区县（如：环翠区，可为空表示市级） */
    @Excel(name = "区县", readConverterExp = "如=：环翠区，可为空表示市级")
    private String district;

    /** 父级区域ID（关联自身，实现联动） */
    @Excel(name = "父级区域ID", readConverterExp = "关=联自身，实现联动")
    private Long parentId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("parentId", getParentId())
            .toString();
    }
}
